<%@page contentType="text/html;charset=utf-8" pageEncoding="utf-8"%>
<%@page import="java.util.List"%>
<%@page import="java.util.Map"%>
<%@page import="java.util.ArrayList"%>
<%@page import="util.TextFormat"%>
<%
	List<Map<String, Object>> newBooks = (List<Map<String, Object>>)request.getAttribute("newBooks");
	if(newBooks == null){
		newBooks = new ArrayList<Map<String, Object>>();
	}
%>
<h2>
	<span class="more"><a href="#" target="_blank">更多&gt;&gt;</a> </span>最新上架图书
</h2>
<div class="book_c_04">

	<%
		for(int i = 0; i < newBooks.size(); i++){
			Map<String, Object> newBook = newBooks.get(i);
	%>
		<div class="second_d_wai">
			<div class="img">
				<a href='<%=request.getContextPath()%>/productImages/<%=TextFormat.getText(newBook, "product_pic")%>' target='_blank'>
					<img src='<%=request.getContextPath()%>/productImages/<%=TextFormat.getText(newBook, "product_pic")%>' border=0 />
				</a>
			</div>
			<div class="shuming">
				<a href="<%=request.getContextPath()%>/product/detail.do?id=<%=TextFormat.getText(newBook, "id")%>" target="_blank"><%=TextFormat.getText(newBook, "product_name")%></a>
			</div>
			<div class="price">
				定价：￥<%=TextFormat.formatNumber(newBook, "fixed_price")%>
			</div>
			<div class="price">
				当当价：￥<%=TextFormat.formatNumber(newBook, "dang_price")%>
			</div>
		</div>
		<div class="book_c_xy_long"></div>
	<%
		}
	%>
</div>
<div class="clear"></div>